@extends("admin.layout.main")

@section("content")

    <style>
        .form-group label {
            width: 100px;
        }

        .form-horizontal > div {
            margin-left: 22px !important;
        }

        .error {
            width: fit-content !important;
            margin-left: 5px;
            color: red;
        }
    </style>
    <div class="page-header">
        <h1>
            修改密码
        </h1>
    </div>
    <!-- div.table-responsive -->

    <!-- div.dataTables_borderWrap -->
    <div>
        <form class="form-horizontal" id="form" action="{{ route('admin.platform.ajaxChangePwd') }}" method="post">
            <div class="form-group">
                <label style="font-size: 16px;font-weight: bold;" class="col-sm-1"> 修改密码</label>
            </div>
            <div class="form-group">
                <label class="col-sm-1 no-padding-right"> 旧密码：</label>

                <div class="col-sm-9">
                    <input type="password" name="oldpassword" required class="col-xs-10 col-sm-5">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 no-padding-right"> 新密码：</label>

                <div class="col-sm-9">
                    <input type="password" name="password" required class="col-xs-10 col-sm-5">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 no-padding-right"> 确认密码：</label>

                <div class="col-sm-9">
                    <input type="password" name="repassword" required class="col-xs-10 col-sm-5">
                </div>
            </div>
            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit" name="submit">
                        {{--<i class="ace-icon fa fa-check bigger-110"></i>--}}
                        修改密码
                    </button>
                    <!-- <a class="btn" onclick="window.history.back()">
                        <i class="ace-icon fa fa-undo bigger-110"></i>
                        取消
                    </a> -->
                </div>
            </div>
        </form>
    </div>
    <script src="{{ config('global.assets_path') }}js/jquery.validate.min.js"></script>
    <script src="{{ config('global.assets_path') }}js/messages_zh.js"></script>
    <script src="/plugins/layui/layui.js"></script>
    <script src="/plugins/layui/layui_component.js"></script>
    <script src="/js/ajax.js"></script>
@endsection